package com.vic.classloader.class_load_time.active_ref;


/**
 * 3 子类被加载时，父类也会被加载。
 */
public class Test3 {

    public static void main(String[] args) {
        Son3 son3 = new Son3();
    }
}
class Father3 {
    static {
        System.out.println("father3类被加载");
    }
}

class Son3 extends Father3 {
    static {
        System.out.println("son3类被加载");
    }
}